package leetcode.D500.T496;

import util.ListUtil;

public class E496 {
    public static void main(String[] args) {
        int[] nums1 = ListUtil.parseIntArray("[2,4]");
        int[] nums2 = ListUtil.parseIntArray("[1,2,3,4]");
        int[] result = new Solution().nextGreaterElement(nums1, nums2);
        for(int i=0; i<result.length; ++i) {
            System.out.print(result[i] + " ");
        }
        System.out.println();
    }
}
